/***********************************************************************
 * Module:  GMainStatusBar.java
 * Author:  Voja
 * Purpose: Defines the Class GMainStatusBar
 ***********************************************************************/

package genedit.gui;

import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.border.EtchedBorder;

public class GMainStatusBar extends JPanel {
   protected JLabel status;
   protected static GMainStatusBar mainStatusBar;
   static{
	   mainStatusBar=new GMainStatusBar();
	   mainStatusBar.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));
	   mainStatusBar.setLayout(new BoxLayout(mainStatusBar, BoxLayout.X_AXIS));
	   mainStatusBar.add(mainStatusBar.status);
   }
   protected GMainStatusBar() {
	   status = new JLabel("status");
	   status.setHorizontalAlignment(SwingConstants.LEFT);
   }
   
   public JLabel getStatusLabel() {
      return status;
   }
   
   public static GMainStatusBar getInstance() {
      return mainStatusBar;
   }

}